package com.study.scala.collections.array

import scala.collection.mutable.ArrayBuffer

object TestArray {

  def main(args: Array[String]): Unit = {
    val array = Array("abc", "efg", "hij");
    println(array.foreach(println _))
    val buf = new ArrayBuffer[String];
    buf += "aaa"
    buf += "bbb"
    buf += "ccc"
    buf += "ddd"
    
    println(buf.toBuffer)

  }
}